// import request from '@/utils/request'

export function login() {
  return new Promise((resolve) => {
    resolve({
      code: 0,
      data: {
        token: 'test-token'
      }
    })
  })
}

export function logout() {
  return new Promise((resolve) => {
    resolve({
      code: 0
    })
  })
}

export function getInfo() {
  return new Promise((resolve) => {
    resolve({
      code: 0,
      data: {
        name: 'xxx',
        avatar: 'xxx'
      }
    })
  })
}
